<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
<input type="button" id='btn1' value="submit">

<script type="text/javascript">
	window.onload=function(){
		var oBtn=document.getElementById('btn1')
		oBtn.onclick=function(){
			window.close()
		}
	}
</script>

</body>
</html>